package common;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import util.SparkUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class SparkManager {

    private final static Logger LOGGER = LogManager.getLogger(KylinManager.class);

    public static List<Map<String, Object>> getLogInfo() throws Exception{
        List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
        try{
            String sql = "select map";
            List<Object> params = new ArrayList<Object>();
            SparkUtils.selectMapListDB(sql, params);
        }catch(Exception e){
            LOGGER.error(e.getMessage());
            throw e;
        }
        return list;
    }
}
